package cn.tedu.signin.management.pojo.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("order")
public class Order implements Serializable {


    /*订单id*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /*用户id*/
    private Long userId;

    /*用户名*/
    private String username;

    /*商品id*/
    private Long goodsId;

    /*订单编号*/
    private Long serialNumber;

    /*下单时间*/
    private LocalDateTime createTime;

    /*商品名*/
    private String productName;

    /*价格*/
    private BigDecimal price;

    /*支付渠道*/
    private Integer payChannel;

    /*订单状态*/
    private Integer state;

    /*支付时间*/
    private LocalDateTime gmtPay;

    /*数据创建时间*/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /*数据最后修改时间*/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;





}
